<?php
/**
* @file $Id: Menu.php 252 2006-10-19 18:46:09Z focus-sis $
* @package Focus/SIS
* @copyright Copyright (C) 2006 Andrew Schmadeke. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
* Focus/SIS is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.txt for copyright notices and details.
*/

$menu['Grades']['admin'] = array(
						'Grades/StudentRCGrades.php'=>_('Final Grades, GPA, & Class Rank'),
						'Grades/StudentGBGrades.php'=>_('Gradebook Grades'),
						'Grades/ReportCards.php'=>_('Report Cards'),
						'Grades/ProgressReportsadvance.php'=>_('Progress Reports Adv'),
						//'Grades/BenchmarkCards.php'=>_('Benchmarks Report Cards'),
						'Grades/Transcripts.php'=>_('Transcripts'),
						1=>_('Reports'),
						'Grades/TeacherCompletion.php'=>_('Teacher Completion'),
						'Grades/GradeBreakdown.php'=>_('Grade Breakdown'),
						'Grades/MissingGrades.php'=>_('Missing Grades'),
						'Grades/ReportCards.php?modfunc=gradelist'=>_('Student Final Grades'),
						'Grades/GradReqsReport.php'=>_('Graduation Requirements Report'),
						2=>_('Setup'),
						'Grades/CalcGPA.php'=>_('Calculate GPA'),
						'Grades/ReportCardCodes.php'=>_('Report Card Codes'),
						//'Grades/CourseBenchmarks.php'=>_('Report Card Benchmarks'),
						'Grades/GraduationRequirements.php'=>_('Graduation Requirements'),
						'Grades/ProgressSummaryReports.php'=>_('Progress Summary Report'),
						'Grades/D_and_F_SummaryReports.php'=>_('D and F Report')
					);
if(!$menu['Users']['admin'])
	$menu['Users']['admin'] = array();

$menu['Users']['admin'] += array(
						'Users/TeacherPrograms.php?include=Grades/InputFinalGrades.php'=>_('Input Final Grades'),
						'Users/TeacherPrograms.php?include=Grades/Assignments.php'=>_('Gradebook Assignments'),
						'Users/TeacherPrograms.php?include=Grades/Grades.php'=>_('Gradebook Grades')
					);

$menu['Grades']['teacher'] = array(
						'Grades/InputFinalGrades.php'=>_('Input Final Grades'),
						//'Grades/InputBenchmarks.php'=>_('Input Benchmarks'),
						'Students/Student.php?include=Comments'=>_('Teacher Comments'),
						'Grades/ReportCards.php'=>_('Report Cards'),
						1=>_('Gradebook'),
						'Grades/Configuration.php'=>_('Configuration'),
						'Grades/Assignments.php'=>_('Assignments'),
						'Grades/Grades.php'=>_('Grades'),
						'Grades/ProgressReports.php'=>_('Progress Reports'),
						'Grades/GradebookBreakdown.php'=>_('Grade Breakdown'),
						'Grades/ProgressReportsadvance.php'=>_('Advanced Progress Reports')
					);

if(!$menu['My_Child']['parent'])
	$menu['My_Child']['parent'] = array();
if(!$menu['My_Information']['student'])
	$menu['My_Information']['student'] = array();

$menu['My_Child']['parent'] += array(
						'Grades/StudentRCGrades.php'=>_('Final Grades, GPA, &amp; Class Rank'),
						'Grades/GradReqsReport.php'=>_('Graduation Requirements')

					);

$menu['My_Information']['student'] += array(
						'Grades/StudentRCGrades.php'=>_('Final Grades, GPA, &amp; Class Rank'),
						'Grades/GradReqsReport.php'=>_('Graduation Requirements')
					);

if(User('PROFILE')=='parent' || User('PROFILE')=='student')
{
	$classes = DBGet(DBQuery("SELECT cp.TITLE,cp.COURSE_PERIOD_ID,cp.TEACHER_ID,s.COURSE_ID,s.COURSE_PERIOD_ID,c.TITLE AS COURSE_TITLE FROM SCHEDULE s,COURSE_PERIODS cp,COURSES c WHERE c.COURSE_ID=cp.COURSE_ID AND cp.COURSE_PERIOD_ID=s.COURSE_PERIOD_ID AND s.STUDENT_ID='".UserStudentID()."' AND cp.MARKING_PERIOD_ID IN (".GetAllMP('QTR',UserMP()).") AND ('".DBDate()."' BETWEEN s.START_DATE AND s.END_DATE OR s.END_DATE IS NULL)"));
	foreach($classes as $class)
		$menu['Classes_&_Grades'][User('PROFILE')]['Grades/StudentGBGrades.php?course_period_id='.$class['COURSE_PERIOD_ID']] = $class['COURSE_TITLE'].' - '.$class['TITLE'];
}
else
	$menu['Classes_&_Grades']['parent'] = $menu['Classes_&_Grades']['student'] = array('Grades/StudentGBGrades.php'=>_('Gradebook Grades'));

$exceptions['Grades'] = array(
						'Grades/CalcGPA.php'=>true
					);
?>
